{include file="header.html"}
<style>
.limit{ max-width:150px; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
.form-horizontal .form-group textarea{ height:50px; }
</style>
<div class="page-header">
	<h6>
		汇总管理
		<small>
			<i class="ace-icon fa fa-angle-double-right"></i>
			导入预览
		</small>
	</h6>
</div>
<div class="row">
<div class="col-xs-12">
	<div class="form-horizontal">
		<h5>成功共{count($data.success)}条</h5>
		{if count($data.success)}
		<div class="table-content">
		<table id="simple-table" class="table table-striped table-bordered table-hover">
			<thead>
				<tr>
					<th>行数</th>
					<th>城市</th>
					<th>付款渠道</th>
					<th>账号</th>
					<th>首次缴费</th>
					<th>姓名</th>
					<th>身份证</th>
					<th>社保号</th>
					<th>公积金账号</th>
					<th>户口性质</th>
					<th>联系电话</th>
					<th>社保档次</th>
					<th>社保费</th>
					<th>公积金</th>
					<th>社保服务费</th>
					<th>公积金服务费</th>
					<th>合计费用</th>
					<th>社保<br />缴费月份</th>
					<th>公积金<br />缴费月份</th>
					<th>备注1</th>
					<th>备注2</th>
					<th>社保<br />增员状态</th>
					<th>社保<br />扣费状态</th>
					<th>公积金<br />增员状态</th>
					<th>公积金<br />扣费状态</th>
				</tr>
			</thead>
			<tbody>
				{foreach from=$data.success item=row}
				<tr>
					<td>第{$row->row}行</td>
					<td>{$row->city_name}</td>
					<td>{$row->member_type}</td>
					<td><div class="limit" title="{$row->member_name}">{$row->member_name}</div></td>
					<td>{if $row->begin_date>0}{$row->begin_date}{else}-{/if}</td>
					<td>{$row->real_name}</td>
					<td>{$row->idcard}</td>
					<td>{$row->social_number}</td>
					<td>{$row->gjj_number}</td>
					<td>{$row->person_type}</td>
					<td>{$row->mobile}</td>
					<td>{$row->casy_name}</td>
					<td>{$row->social_price}</td>
					<td>{$row->gjj_price}</td>
					<td>{$row->service_price}</td>
					<td>{$row->gjj_service_price}</td>
					<td>{$row->total_price}</td>
					<td><div class="limit" title="{$row->month}">{$row->month}</div></td>
					<td><div class="limit" title="{$row->gmonth}">{$row->gmonth}</div></td>
					<td><div class="limit" title="{$row->remark1}">{$row->remark1}</div></td>
					<td><div class="limit" title="{$row->remark2}">{$row->remark2}</div></td>
					<td>{$row->status_name}</td>
					<td>{$row->kstatus_name}</td>
					<td>{$row->gstatus_name}</td>
					<td>{$row->gkstatus_name}</td>
				</tr>
				{/foreach}
			</tbody>
		</table>
		</div>
		{/if}
		<br /><br /><h5>错误共{count($data.error)}条</h5>
		{if count($data.error)}
		<div class="table-content">
		<table class="table table-striped table-bordered table-hover">
			<thead>
				<tr>
					<th>行数</th>
					<th>错误原因</th>
				</tr>
			</thead>
			<tbody>
				{foreach from=$data.error item=g}
				<tr>
					<td>第{$g.row}行</td>
					<td>{$g.error}</td>
				</tr>
				{/foreach}
			</tbody>
		</table>
		</div>
		{/if}
	
		<div class="clearfix form-actions">
			<div class="col-md-offset-3 col-md-9">
				<button class="btn btn-info" type="button" onclick="location.href='?app=collect&act=import'">
					<i class="ace-icon fa fa-check bigger-110"></i>
					确定导入
				</button>
				<button class="btn btn-info" type="button" onclick="location.href='?app=collect&act=index'">
					<i class="ace-icon fa fa-check bigger-110"></i>
					返回
				</button>
			</div>
		</div>
	</div>
</div>
</div>

{include file="footer.html"}
<script>
$(function(){
	$('.limit').tips();
});
</script>